<template>
	<div>
		<el-card class="mb-4" shadow="never">
			<div class="text-xl font-medium mb-[20px]">下载指令 v-down</div>
			<el-button size="default" type="primary" class="mb-4"> v-down="[url,name,isLoading]" </el-button>
            <el-button size="default" type="primary" class="mb-4" v-down="[getUrl('resource/admin/images/logo.png'),'logo', true]"> 下载logo图片 </el-button>
            <el-alert title="v-down指令 url:下载地址 name:文件名称 isLoading:是否显示加载中"></el-alert>
		</el-card>
	</div>
</template>

<script setup lang="ts" name="directiveDown">
import { getUrl } from '/@/utils/util';

</script>

<style scoped lang="scss"></style>
